package com.lkqandzzy.dao;

import com.lkqandzzy.entity.Opportunities;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OpportunitiesDao {

    //获取总条数
    //@Param注解单一属性
    Integer totalCount(@Param("contacts") String contacts, @Param("state") String state);
    //获取用户列表
    //@Param注解单一属性
    List<Opportunities> getOpportunitiesDaoList(@Param("contacts") String contacts, @Param("state") String state, @Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize);

    int deleteOpportunities(Integer sales_id);
    int addOpportunities(Opportunities opportunities);
    int updateOpportunities(Opportunities opportunities);
    Opportunities findOpportunitiesById(Integer sales_id);
    List<Opportunities> getAll();
}
